package com.app.biz;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.app.entity.AppInfo;
import com.app.entity.AppVersion;

public interface AppInfoBiz {
	List<AppInfo> getAppInfoPage(int id, int categoryLevel1,
			int categoryLevel2, int categoryLevel3, String softwareName,
			int status, int flatformId, int startIndex, int pageSize);

	AppInfo getById(@Param("id") int id);



	int addInfo(AppInfo appInfo);//添加appInfo信息
	

	int getRowsCount(int cid, int categoryLevel1, int categoryLevel2,
			int categoryLevel3, String softwareName, int status,
			int flatformId);


	AppInfo getVersion(@Param("id")int id);

	void update(AppInfo appInfo);
	List<AppInfo> getAppInfo(@Param("id") int id);//根据id查询App信息

	int deleteAppInfo(int id);//根据id删除APp信息

	int updateflatform(int status,int id);

	
	//审核
	List<AppInfo> getAppInfoPageByStatus(int id,
			int categoryLevel1,
			int categoryLevel2,
			int categoryLevel3,
			String softwareName,
			 int status, @Param("flatformId") int flatformId,
			 int startIndex, @Param("pageSize") int pageSize);
	//根据id查询多少条未审核个数
		int updateInfoByStatus(@Param("id") int id);
		int getRowsCount1(int cid,	int categoryLevel1,
				int categoryLevel2,
			int categoryLevel3,
			 String softwareName,
				int status, @Param("flatformId") int flatformId);

}
